package com.uatair.common.client;

import org.springframework.context.ApplicationEvent;

public class MqttMessageEvent  extends ApplicationEvent {
    private final String topic;
    private final int qos;
    private final String message;

    public MqttMessageEvent(Object source, String topic, int qos, String message) {
        super(source);
        this.topic = topic;
        this.qos = qos;
        this.message = message;
    }

    // Getters
    public String getTopic() { return topic; }
    public int getQos() { return qos; }
    public String getMessage() { return message; }
}
